import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export const useModelStore = defineStore('model', () => {
    const modelInfo = ref({
        id: 0,
        serverUrl: '',
        modelName: '',
        intro: '',
        avatar: '',
        servedModelName: ''
    })
    const setModelInfo = (value) => {
        modelInfo.value = value
    }
    return { modelInfo, setModelInfo }
}, {
    persist: true
})